/*  ----------------------------------------------------------------------------
 *  Arello Mobile
 *  Fast 3d Engine
 *  ----------------------------------------------------------------------------
 * Except where otherwise noted, this work is licensed under
 * http://creativecommons.org/licenses/by/3.0
 */

#include "Dependent.h"
#include "Hardware.h"

namespace liba
{
namespace lib3d
{
namespace hard
{
namespace directx8
{

Dependent::Dependent( Hardware * hardware )
:	hardware( hardware )
{
	it = hardware->add_dependent( this );
}

Dependent::~Dependent()
{
	hardware->remove_dependent( it );
}


} // namespace directx8
} // namespace hard
} // namespace lib3d
} // namespace liba

